package com.atguigu.gulimall.product.feign;

import com.atguigu.common.no.to.SkuReductionTo;
import com.atguigu.common.no.utils.R;
import com.atguigu.gulimall.product.vo.SpuBoundTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimall-coupon")
@RequestMapping("coupon/coupon")
public interface CouponFeignService {


    @GetMapping("/member/list")
    public R menbercoupons();

    @PostMapping("/coupon/skufullreduction/saveinfo")
    R saveSkuReduction(SkuReductionTo skuReductionTo);


    @PostMapping("/coupon/spubounds/saveinfo")
    R saveSpuBounds(SpuBoundTo spuBoundTo);
}